package com.retrofit.server.processor.entity;

import javax.lang.model.type.TypeMirror;

/**
 * @author YLG
 * @Datetime 2020/5/8-10:38 PM
 * @Version v1.0
 * @description
 */
public class MethodReturnEntity {
  
  /**return 类型 接口返回类型 **/
  private TypeMirror tmInterfaceReturn;

  /***
   * 实现方法反类型
   * int.class,Response.class
   */
  private TypeMirror tmMethodReturn;
  
  private GenericEntity mGenericEntity;
  
  /**
   * 是否有泛型 'T'
   */
  private boolean isGenericT;

  /**
   * 是否为同步方法;True 是，false 非
   */
  private boolean isSync;



  public boolean isSync() {
    return isSync;
  }

  public void setSync(boolean sync) {
    isSync = sync;
  }

  public boolean isGenericT() {
    return isGenericT;
  }
  
  public void setGenericT(boolean genericT) {
    isGenericT = genericT;
  }
  
  public TypeMirror getTmInterfaceReturn() {
    return tmInterfaceReturn;
  }
  
  public void setTmInterfaceReturn(TypeMirror tmInterfaceReturn) {
    this.tmInterfaceReturn = tmInterfaceReturn;
  }
  
  public GenericEntity getGenericEntity() {
    return mGenericEntity;
  }
  
  public void setGenericEntity(GenericEntity genericEntity) {
    mGenericEntity = genericEntity;
  }

  public TypeMirror getTmMethodReturn() {
    return tmMethodReturn;
  }

  public void setTmMethodReturn(TypeMirror tmMethodReturn) {
    this.tmMethodReturn = tmMethodReturn;
  }
}
